<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
	<table cellpadding="5" cellspacing="0" width="100%">
	<tr>
		<?php
			$id=$_GET['id'];
            $query1 = "select * from newdetails where id=$id";
            $result1 = mysql_query($query1) or die();
			$a=1;
            while($row1 = mysql_fetch_array($result1)){?>
			<td class="sp_home_title" width="100%">
				 Tin tức >> <?php echo $row1['newName'];?>
			</td>
		<?php
		}
		?>
		</tr>
	</table>
	<div class="khung_sp_ds_top_c">
		<div class="khung_sp_tc_top_l"><img src="images/khung_sp_trangchu_top_l.gif" /></div>
		<div class="khung_sp_tc_top_r"><img src="images/khung_sp_trangchu_top_r.gif" /></div>
	</div>

	<div style="border:1px solid #ccc; background:#fff; border-top:none; padding:10px">

	<table style="padding:4px"></table>
	<table cellpadding="0" cellspacing="2" class="news_list">
		<tr>
			<?php
			$id=$_GET['id'];
            $query = "select * from newdetails where id=$id";
            $result = mysql_query($query) or die();
			$a=1;
            while($row = mysql_fetch_array($result)){?>
               	<td>
                	<table border="0" cellpadding="0" cellspacing="2">
                    	<tr>
                            <td class="title_new" valign="top">
                        		<table border="0" cellpadding="0" cellspacing="0">
                        			<tr>
                        				<td><?php echo $row['newName'];?></td>
                        			</tr>
                        			<tr><td height="20"></td></tr>
                        			<tr>
			                        	<td class="title_detail" colspan="2">
			                            	<?php
												echo $row['newDetail'];
											?>
			                            </td>
			                        </tr>
                        		</table>
                            	
                            </td>
                        </tr>
                        <tr><td height="2"></td></tr>
                    	
                      	<tr>
                        	<td class="title_detail">
                            	<?php
									echo $row['newContent'];
								?>
                            </td>
                        </tr>
                    </table>	
                </td>
            <?php
			if($a%1==0){
				echo "</tr><tr>";
			}
			$a=$a+1;
            }
            ?>
		</tr>	
	</table>
</body>
</html>